package service

import "context"

type (
	IMysys interface {
		UpdateClusterDb(ctx context.Context) (err error)
		GetStaticPath(ctx context.Context) string
		GetMyServerKey(ctx context.Context) string
	}
)

var (
	localMysys IMysys
)

func Mysys() IMysys {
	if localMysys == nil {
		panic("implement not found for interface IMysys, forgot register?")
	}
	return localMysys
}

func RegisterMysys(i IMysys) {
	localMysys = i
}
